package BlueJ;


/**
 * Write a description of class Ordinateur here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Ordinateur
{
	// instance variables - replace the example below with your own
	private String marque;
	private int prix;
	private Proprietaire MonProprietaire;


	/**
	 * Constructor for objects of class Ordinateur
	 */
	//http://java.developpez.com/livres-collaboratifs/javaenfants/?page=premier-programme#LIII-C
	public Ordinateur()
	{
		// initialise instance variables
		this.marque = "Dell";
		this.prix = 400;
	}



	public Proprietaire getMonProprietaire() {
		return MonProprietaire;
	}



	public void setMonProprietaire(Proprietaire monProprietaire) {
		MonProprietaire = monProprietaire;
	}



	/**
	 * An example of a method - replace this comment with your own
	 * 
	 * @param  y   a sample parameter for a method
	 * @return     the sum of x and y 
	 */
	public void setMarque(String m)
	{
		// put your code here
		this.marque=m;
	}


	public String getMarque()
	{
		// put your code here
		return this.marque;
	}

	public void setPrix(int p)
	{
		// put your code here
		this.prix=p;
	}


	public int getPrix()
	{
		// put your code here
		return this.prix;
	}

	public void MiseEnFonction(){
		System.out.println("Bonjour, je suis un ordinateur, j ai ete fabrique par la marque: "+this.getMarque()+
				" et mon prix est: "+this.getPrix()+ " euros");
	}
}
